package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("truck")//当实体类和表名不一致的时候，用@tablename来指定表名
public class Truck {
	@TableId(type = IdType.AUTO)
	private Long id;
	private Long carrierId;
	private String number;
	private Float weight;
	private Integer state;
	private String info;

	public Truck(){

	}
    public Truck(Long carrierId, String number, Float weight, String info) {
		this.carrierId = carrierId.longValue();
		this.number = number;
		this.weight = weight;
		this.info = info;
    }

    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(Long carrierId) {
		this.carrierId = carrierId;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public Float getWeight() {
		return weight;
	}

	public void setWeight(Float weight) {
		this.weight = weight;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}
}
